//
//  DHAreaCell.m
//  精品酒店
//
//  Created by DIANGHONG on 2018/5/14.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "DHAreaCell.h"
@interface DHAreaCell()
@property (weak, nonatomic) IBOutlet UILabel *cityLabel;
@property (weak, nonatomic) IBOutlet UILabel *provinceLabel;

@end
@implementation DHAreaCell

- (void)setProvince:(NSString *)province{
    _province = province;
    
    self.provinceLabel.text = province;
}
- (void)setCity:(NSString *)city{
    _city = city;
    
    self.cityLabel.text = city;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
#pragma mark: - touchesBegan
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self endEditing:true];
}
- (IBAction)provinceButtonClick:(UIButton *)sender
{
    [self.delegate areaCellSelectedProvince:self];
}
- (IBAction)cityButtonClick:(UIButton *)sender
{
    [self.delegate areaCellSelectedCity:self];
}

@end
